package com.example.demo.permission.menurole.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.demo.permission.menurole.pojo.MenuRole;

@Mapper
public interface MenuRoleMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(MenuRole record);

	int insertSelective(MenuRole record);

	MenuRole selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(MenuRole record);

	int updateByPrimaryKey(MenuRole record);

	int deleteMenuByRid(@Param("rid") Long rid);

	int addMenu(@Param("rid") Long rid, @Param("mids") Long[] mids);

}